##
## Copyright (C) 2004-2006  Autodesk, Inc.
## 
## This library is free software; you can redistribute it and/or
## modify it under the terms of version 2.1 of the GNU Lesser
## General Public License as published by the Free Software Foundation.
## 
## This library is distributed in the hope that it will be useful,
## but WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
## Lesser General Public License for more details.
## 
## You should have received a copy of the GNU Lesser General Public
## License along with this library; if not, write to the Free Software
## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
##

AUTOMAKE_OPTIONS = foreign

EXTRA_DIST = \
  UnitTest.vcproj \
  providers.xml \
  Pch.cpp

noinst_PROGRAMS = UnitTest

UnitTest_SOURCES = \
  BigPerformanceTests.cpp \
  ComparisonTests.cpp \
  ConnectionInfoTests.cpp \
  DeleteTests.cpp \
  FdoExpressionFunctionTest.cpp \
  FidelityTests.cpp \
  FilterTests.cpp \
  glibpatch.cpp \
  InsertTests.cpp \
  MapInfoTests.cpp \
  Pch.cpp \
  PerformanceTests.cpp \
  ReaderTest.cpp \
  ReadOnlyTests.cpp \
  SchemaTests.cpp \
  SelectAggregatesTests.cpp \
  SelectTests.cpp \
  SpatialFilterTests.cpp \
  UnitTest.cpp \
  UnitTestUtility.cpp \
  UpdateTests.cpp \
  XmlFormatter.cpp

noinst_HEADERS = $(UnitTest_SOURCES) \
  BigPerformanceTests.h \
  ComparisonTests.h \
  ConnectionInfoTests.h \
  ConnectTests.h \
  DeleteTests.h \
  FdoExpressionFunctionTest.h \
  FidelityTests.h \
  FilterTests.h \
  InsertTests.h \
  MapInfoTests.h \
  Pch.h \
  PerformanceTests.h \
  ReaderTest.h \
  ReadOnlyTests.h \
  SchemaTests.h \
  SelectAggregatesTests.h \
  SelectTests.h \
  SpatialFilterTests.h \
  UnitTestUtility.h \
  UpdateTests.h \
  XmlFormatter.h

INCLUDES = \
  -I$(FDO)/Unmanaged/Inc \
  -I$(FDOTHIRDPARTY)/linux/cppunit/include \
  -I$(FDOUTILITIES)/Common/Inc \
  -I$(FDOUTILITIES)/TestCommon/Inc \
  -I../../Inc  \
  -I../Provider

UnitTest_LDADD = \
  $(FDOUTILITIES)/Common/libProvidersCommon.la \
  $(FDOUTILITIES)/TestCommon/libTestCommon.la \
  $(FDOTHIRDPARTY)/linux/cppunit/lib/libcppunit.a \
  $(FDO)/Unmanaged/Src/libFDO.la \
  -lxerces-c \
  -lxalan-c \
  -lxalanMsg

UnitTest_LDFLAGS = \
  -L$(FDOTHIRDPARTY)/apache/xml-xalan/c/lib \
  -L$(FDOTHIRDPARTY)/apache/xml-xerces/c/lib

CXXFLAGS = @CXXFLAGS@ -D__USE_GNU -DLINUX -DLINUX_IA32 -D__STDC_LIMIT_MACROS

